package com.fmyexample.v2mcsecuritybootredis.security;

import lombok.AllArgsConstructor;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

/**
 * @author Mr.fmy
 * @version 1.0.0
 * @ClassName UserDetailsServiceImpl
 * @Description TODO Security自带UserDetailsService接口实现
 * @createTime 2020/4/15 11:23
 */
@Service
@AllArgsConstructor
public class UserDetailsServiceImpl implements UserDetailsService {


    @Override
    public UserDetails loadUserByUsername(String s) throws UsernameNotFoundException {
        return new CuUserDetails();
    }
}
